import request from '@/utils/request'

export function getQiNiuToken(data) {
    return request({
      url: '/admin/upload/getUplodeToken',
      method: 'post',
      data
    })
}



export function getQiNiuImagePath(data) {
  return request({
    url: '/admin/upload/getImagePath',
    method: 'post',
    data
  })
}


export function getPrivateImagePath(data) {
  return request({
    url: '/admin/upload/getPrivateImagePath',
    method: 'post',
    data
  })
}

export function commonGetInfo(url,data) {
  return request({
    url: url,
    method: 'post',
    data
  })
}


export function getCoverList(data) {
  return request({
    url: '/admin/cover/lists',
    method: 'post',
    data
  })
}


export function getAdvsPosList(data) {
  return request({
    url: '/admin/marketing/advsPos/getCategory',
    method: 'post',
    data
  })
}


export function getVersionList(data) {
  return request({
    url: '/admin/version/getCategory',
    method: 'post',
    data: data||{}
  })
}

export function getPlugList(data) {
  return request({
    url: '/admin/plug/getCategory',
    method: 'post',
    data: data||{}
  })
}